package di.scanner.mongo.model;


public class ClassField {

    public final static String COLUMN = "Column";
    public final static String JOIN_TABLE = "JoinTable";
    public final static String MANAY_TO_MANY = "ManyToMany";
    public final static String ONE_TO_MANY = "OneToMany";
    public final static String MANY_TO_ONE = "ManyToOne";
    public final static String ONE_TO_ONE = "OneToOne";

    private String name;
    private String type;
    private String referencedModel;
    private String referencedModelId;
    private Column column;
    private JoinColumn joinColumn;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getReferencedModel() {
        return referencedModel;
    }

    public void setReferencedModel(String referencedModel) {
        this.referencedModel = referencedModel;
    }

    public String getReferencedModelId() {
        return referencedModelId;
    }

    public void setReferencedModelId(String referencedModelId) {
        this.referencedModelId = referencedModelId;
    }

    public Column getColumn() {
        return column;
    }

    public void setColumn(Column column) {
        this.column = column;
    }

    public JoinColumn getJoinColumn() {
        return joinColumn;
    }

    public void setJoinColumn(JoinColumn joinColumn) {
        this.joinColumn = joinColumn;
    }

    @Override
    public String toString() {
        return "ClassField{" +
                "name='" + name + '\'' +
                ", type='" + type + '\'' +
                ", referencedModel='" + referencedModel + '\'' +
                ", referencedModelId='" + referencedModelId + '\'' +
                ", column=" + column +
                ", joinColumn=" + joinColumn +
                '}';
    }
}
